-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate try!
macro
#62077
Deprecate try!
macro
#62077
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @dtolnay (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
both checks should succeed once #62042 is merged, right? |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
r? @Centril |
For anyone who wishes to continue to use the Documentation: https://docs.rs/try/1.0.0/try/ When you use the crate, you get no deprecation warning. Win! |
RELNOTES: The |
Yes, deprecated items in libstd should use Considering how widely-used this used to be, maybe deprecating it a version or two in the future is a good idea? You can just set the version number to 1.39.0 or so. |
The |
This comment has been minimized.
This comment has been minimized.
Sorry, I meant the entire standard library. That includes libcore (and liballoc). |
@BO41: 🔑 Insufficient privileges: not in try users |
@BO41: 🔑 Insufficient privileges: not in try users |
You can use |
as expected, there are more places where |
@BO41 You can use |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Update src/libcore/macros.rs Co-Authored-By: Mazdak Farrokhzad <[email protected]> Change deprecated to rustc_deprecated Update src/libcore/macros.rs Co-Authored-By: Oliver Middleton <[email protected]> Push deprecation version one back Allow deprecated reexport .
Could somebody please take over this PR? I am sorry this takes so long. But I didn't think it would be so much to change. |
I'd like to give this a try, however considering I've never messed around with the rustc source before I don't think that I'm gonna be considerably faster than @BO41, however I'd still love to try! |
Deprecate `try!` macro Replaces rust-lang#62077 Fixes rust-lang/rust-clippy#1361 Fixes rust-lang#61000
Depends on #62042 being merged first
Fixes rust-lang/rust-clippy#1361
Fixes #61000